package com.cc.monitor.entity.message;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * ValueRow
 *
 * @author aa
 * @version 1.0
 * @since 2024/11/21
 */
@Data
public class ValueRow {
    private List<String> columns;

    public void addColumns(String s) {
        if (columns == null) {
            columns = new ArrayList<>();
        }
        columns.add(s);
    }

    public String getColumn(int aliasIndex) {
        return columns.get(aliasIndex);
    }

    public void clear() {
        columns = new ArrayList<>();

    }
}
